#include <iostream>

using namespace std;

int main()
{
    int sum = 0;
    // sum 用于存放从 1 到 10 所有数的和
    for (int val = 1; val <= 10; ++val)
        sum += val; // 等价于 sum = sum + val
    cout << "Sum of 1 to 10 inclusive is "
        << sum << endl;
    return 0;
}